﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MaintainPostings.aspx.cs" Inherits="Admin_MaintainPostings" %>
<%@ Register Src="~/Share/PostingDetailControl.ascx" TagName="PostingDetail" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div class="cleaner_with_height"></div>
Select Competition 
     <asp:DropDownList ID="drd_Competitions" runat="server" DataTextField="CompetitionName" 
        DataValueField="CompetitionID"  
        AutoPostBack="true" 
        onselectedindexchanged="drd_Competitions_SelectedIndexChanged" >
     </asp:DropDownList>
     <asp:HyperLink ID="hplink_ViewDetailCompetition" runat="server">View Detail Competition</asp:HyperLink>
    <asp:Panel ID="pn_PostingDetail" runat="server">
    </asp:Panel>
    <div class="float_left">
    <asp:Panel ID="pn_Stff" runat="server">
      <div class="remark">
          <h1>Remarks</h1><span><asp:DropDownList ID="drd_Mark" runat="server">
          <asp:ListItem>Best</asp:ListItem>
          <asp:ListItem>Better</asp:ListItem>
          <asp:ListItem>Good</asp:ListItem>
          <asp:ListItem>Moderate</asp:ListItem>
          <asp:ListItem>Normal</asp:ListItem>
         <asp:ListItem>Disqualified</asp:ListItem>
         </asp:DropDownList>                
                </span>
                <div class="cleaner"></div>
                <h1>Comment</h1>
                <div class="cleaner"></div>
                <asp:TextBox ID="txtCommnet" runat="server" Width="495px" Height="50px" TextMode="MultiLine"></asp:TextBox><br />
                <div>
                <asp:Button ID="btnComment" runat="server" Text="Remark" 
                        onclick="btnComment_Click" />
                <asp:Button ID="btnReset" runat="server" Text="Reset" />
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                </div>
                </div> 
                <br />
                <hr />
           <div class="float_left">
    <asp:Button ID="btnSendExhibition" runat="server" Text="Send to " 
        onclick="btnSendExhibition_Click" />
         <asp:DropDownList ID="drdExhi" runat="server" DataTextField="ExhibitionName" 
        DataValueField="ExhibitionID"          
        onselectedindexchanged="drd_Competitions_SelectedIndexChanged" >
     </asp:DropDownList> Exhibition |
     
    <asp:Button ID="btn_Delete" runat="server" Text="Delete" 
        onclick="btn_Delete_Click" OnClientClick="javascript:return confirmAction();"  />
        </asp:Panel>
        </div><div class="search">Search <asp:TextBox ID="txtSearch" runat="server" Width="150px"></asp:TextBox>
                            <asp:LinkButton ID="btn_Search" runat="server" Text="Go" 
           onclick="btn_Search_Click"></asp:LinkButton></div>  
        <div class="cleaner"></div>
    <asp:GridView ID="grv_Postings" runat="server" AllowPaging="true" AutoGenerateColumns="false" DataKeyNames="PostingID" Width="640px">
        <Columns>
            <asp:TemplateField ItemStyle-Width="30px" ItemStyle-HorizontalAlign="Center">
                <HeaderTemplate><asp:CheckBox ID="chk_All" runat="server" AutoPostBack="true" OnCheckedChanged="onCheckedChange" />  </HeaderTemplate>
                <ItemTemplate><asp:CheckBox ID="chk_Item" runat="server" /></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="160px" ItemStyle-CssClass="pad">
                <HeaderTemplate>Posting Name</HeaderTemplate>
                <ItemTemplate> <asp:Label ID="lb_postingname" runat="server" Text='<%# Eval("PostingName") %>'></asp:Label></ItemTemplate>
            </asp:TemplateField>

             <asp:TemplateField ItemStyle-Width="150px" ItemStyle-CssClass="pad" >
                <HeaderTemplate>Average Mark</HeaderTemplate>
                <ItemTemplate> <asp:Label ID="lb_Mark" runat="server" Text=""></asp:Label> </ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField ItemStyle-Width="160px" ItemStyle-CssClass="pad">
                <HeaderTemplate>Student Name</HeaderTemplate>
                <ItemTemplate><%# Eval("Fullname")%></ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField ItemStyle-Width="90px" ItemStyle-HorizontalAlign="Center">
                <HeaderTemplate>Post  Date</HeaderTemplate>
                <ItemTemplate><%# Eval("PostDate", "{0:dd/MM/yyyy}")%></ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField ItemStyle-Width="55px" ItemStyle-HorizontalAlign="Center">
                <HeaderTemplate>Details</HeaderTemplate>
                <ItemTemplate><a href='MaintainPostings.aspx?PostingID=<%#Eval("PostingID") %>'>Details</a></ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>
